<!--
 * @Author: jay
 * @Date: 2021-08-13 08:33:36
 * @LastEditTime: 2021-08-13 14:43:39
 * @LastEditors: Please set LastEditors
 * @Description: 文本规则
 * @FilePath: \Briup\Common\study\2-css\11-text.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本规则</title>
    <style>
        html {
            font: normal normal 14px/1.4 '宋体'，'微软雅黑';
            color: #333;
        }
        a {
            text-decoration: none;
            color: #333;
        }
        .one {
            text-align: center;
            text-decoration-line: underline ;
            text-decoration-style: double ;
            text-decoration-color: lightsalmon;
        }
        .two{
            text-indent: 2em;
            text-shadow: 3px 3px 3px gray;
        }
        .three{
            text-transform: capitalize;
        }
        .box{
            background-color: lightsalmon;
            width: 300px;
            white-space: nowrap;                    /*取消换行*/
            overflow: hidden;                       /* 处理超出部分*/
            text-overflow: ellipsis;                /*使用...取代*/
        }
    </style>
</head>
<body>
    <div class="one">元宝是只小懒猫</div>
    <div class="two">元宝拉屎贼臭</div>
    <div>
        <a href="https://www.baidu.com">百度一下</a>
    </div>
    <div class="three">hello world</div>
    <div class="box">
        矿业工程学院成功举办2021年遥感综合实习专家报告会
    </div>
</body>
</html>